<?php

namespace App\Observers;

use App\Models\BatchWithdraw;

class BatchWithdrawObserver
{
	public function creating(BatchWithdraw $batch)
	{
		if (! $batch->batch_number) {
			$batch->batch_number = serial_uuid($batch, 'batch_number');
			if (! $batch->batch_number) {
				return false;
			}
		}
	}
}
